package com.cml.springcloud.service.impl;

import com.cml.springcloud.service.PaymentService;
import org.springframework.stereotype.Service;

/**
 * @author cml
 * @create 2021/4/20 12:26
 */
@Service
public class PaymentServiceImpl implements PaymentService {
    @Override
    public String paymentInfo_ok(Integer id) {

//        int a = 10/0;
        return "fallbackmethod+CLOUD-PROVIDER-HYSTRIX-PAYMENT+ok";
    }

    @Override
    public String paymentInfo_timeout(Integer id) {

        return "fallbackmethod+CLOUD-PROVIDER-HYSTRIX-PAYMENT+timeout";
    }
}
